 using UnityEngine;
using System.Collections;

public static class Helper {
  //Strut to contain information about the colours
	public struct ColourStruct
	{
		public Color color;
		public string colorName;
	}
	//Add more to this switch to increae random Colours
	public static ColourStruct RandomColour(string[] cols)
	{
				string strRandomColour = cols [Random.Range (0, cols.Length)];
				ColourStruct returnColour = new ColourStruct ();
				returnColour.color = Color.white;
				returnColour.colorName = "";
				switch (strRandomColour.ToLower ()) {
				case "blue":
						returnColour.color = Color.blue;
						returnColour.colorName = "blue";
						break;
				case "green":
						returnColour.color = Color.green;
						returnColour.colorName = "green";
						break;
				case "red":
						returnColour.color = Color.red;
						returnColour.colorName = "red";
						break;
				default:
						Debug.LogError ("Colour "+ strRandomColour + " not added to the Colour Switch");
						break;
				}

				return returnColour;
		}
		
	}
